package com.health.personal.api;


import com.health.common.core.constant.ServiceNameConstants;
import com.health.common.core.domain.R;
import com.health.personal.api.model.po.TDoctorPo;
import com.health.personal.api.factory.RemotePersonalFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 文件服务
 *
 * @author health
 */
@FeignClient(contextId = "remotePersonalService", value = ServiceNameConstants.HEALTH_PERSONAL, fallbackFactory = RemotePersonalFallbackFactory.class)
public interface RemotePersonalService
{
    /**
     * 登录
     * @param email
     * @return
     */
    @GetMapping("/doctor/login/{email}")
    public R<TDoctorPo> login(@PathVariable("email") String  email);

}
